package com.haorui.lygyd.employeemanager.service;

import com.haorui.base.core.model.Search;
import com.haorui.base.core.service.BaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.haorui.lygyd.employeemanager.entity.SchoolEntity;
import com.haorui.lygyd.employeemanager.repository.SchoolRepository;

/**
 * @support: 西安鑫正豪信息技术有限公司
 * @author: 系统生成
 * @version: 1.0
 * @Date: Wed Feb 27 00:27:07 CST 2019
 * @Description: 学校
 */
@Service
public class SchoolService extends BaseService<SchoolEntity,String> {
    private SchoolRepository schoolRepository;
    public SchoolService(@Autowired SchoolRepository schoolRepository) {
        super(schoolRepository);
        this.schoolRepository=schoolRepository;
    }

    @Override
    protected Search<SchoolEntity> getSearch() {
        return new Search<SchoolEntity>(SchoolEntity.class);
    }
}
